import 'package:flutter/material.dart';

class LayoutDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Container(
      child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        // crossAxisAlignment: CrossAxisAlignment.start,
        children: <Widget>[
          Stack(
            children: <Widget>[
              SizedBox(
                child: Container(
                  height: 100,
                  width: 100,
                  alignment: Alignment.topLeft,
                  decoration:
                      BoxDecoration(color: Color.fromRGBO(20, 222, 23, 0.9)),
                  child: Icon(Icons.ac_unit, size: 34),
                ),
              ),
              SizedBox(
                height: 20,
              ),
              SizedBox(
                child: Container(
                  height: 100,
                  width: 100,
                  alignment: Alignment.bottomRight,
                  decoration:
                      BoxDecoration(color: Color.fromRGBO(20, 222, 23, 0.9)),
                  child: Icon(Icons.ac_unit, size: 34),
                ),
              ),
            ],
          )
        ],
      ),
    );
  }
}

class IconBadge extends StatelessWidget {
  final IconData icon;
  final double size;
  IconBadge(this.icon, {this.size = 32});
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Container(
        child: Icon(
          icon,
          size: size,
          color: Colors.white,
        ),
        width: size + 60,
        height: size + 60,
        color: Colors.deepOrangeAccent[200]);
  }
}
